using UnityEngine;

namespace Crosstales.OnlineCheck.Data
{
    // [Assembly-CSharp-firstpass.dll].Crosstales.OnlineCheck.Data.CustomCheck
    [Serializable]
    public class CustomCheck : ScriptableObject
    {
        // Fields
        private string url;
        private string expectedData;
        private bool dataMustBeEquals;
        private bool useOnlyCustom;
        private bool showErrors;
        private int headerSize;
        
        // Properties
        public string URL { get; set; }
        public string ExpectedData { get; set; }
        public bool DataMustBeEquals { get; set; }
        public bool UseOnlyCustom { get; set; }
        public bool ShowErrors { get; set; }
        public int HeaderSize { get; set; }
        
        // Methods
        public string get_URL()
        {
            return (string)this.url;
        }
        public void set_URL(string value)
        {
            this.url = value;
        }
        public string get_ExpectedData()
        {
            return (string)this.expectedData;
        }
        public void set_ExpectedData(string value)
        {
            this.expectedData = value;
        }
        public bool get_DataMustBeEquals()
        {
            return (bool)this.dataMustBeEquals;
        }
        public void set_DataMustBeEquals(bool value)
        {
            this.dataMustBeEquals = value;
        }
        public bool get_UseOnlyCustom()
        {
            return (bool)this.useOnlyCustom;
        }
        public void set_UseOnlyCustom(bool value)
        {
            this.useOnlyCustom = value;
        }
        public bool get_ShowErrors()
        {
            return (bool)this.showErrors;
        }
        public void set_ShowErrors(bool value)
        {
            this.showErrors = value;
        }
        public int get_HeaderSize()
        {
            return (int)this.headerSize;
        }
        public void set_HeaderSize(int value)
        {
            this.headerSize = value & (~(value >> 31));
        }
        private void OnValidate()
        {
            if((this.headerSize & 2147483648) == 0)
            {
                    return;
            }
            
            this.headerSize = 0;
        }
        public override string ToString()
        {
            var val_21;
            536893081 = new System.Text.StringBuilder();
            System.Text.StringBuilder val_3 = val_1.Append(value:  this.GetType());
            val_21 = 536882899;
            if(mem[536883123] == 0)
            {
                    val_21 = 536882899;
            }
            
            System.Text.StringBuilder val_4 = val_1.Append(value:  mem[536883083] + 80);
            System.Text.StringBuilder val_5 = val_1.Append(value:  -1610602027);
            System.Text.StringBuilder val_6 = val_1.Append(value:  this.url);
            System.Text.StringBuilder val_7 = val_1.Append(value:  mem[536883083] + 96);
            System.Text.StringBuilder val_8 = val_1.Append(value:  -1610607599);
            System.Text.StringBuilder val_9 = val_1.Append(value:  this.expectedData);
            System.Text.StringBuilder val_10 = val_1.Append(value:  mem[536883083] + 96);
            System.Text.StringBuilder val_11 = val_1.Append(value:  -1610608267);
            System.Text.StringBuilder val_12 = val_1.Append(value:  this.dataMustBeEquals);
            System.Text.StringBuilder val_13 = val_1.Append(value:  mem[536883083] + 96);
            System.Text.StringBuilder val_14 = val_1.Append(value:  -1610601583);
            System.Text.StringBuilder val_15 = val_1.Append(value:  this.useOnlyCustom);
            System.Text.StringBuilder val_16 = val_1.Append(value:  mem[536883083] + 96);
            System.Text.StringBuilder val_17 = val_1.Append(value:  -1610603775);
            System.Text.StringBuilder val_18 = val_1.Append(value:  this.showErrors);
            System.Text.StringBuilder val_19 = val_1.Append(value:  mem[536883083] + 104);
            System.Text.StringBuilder val_20 = val_1.Append(value:  mem[536883083] + 88);
            goto mem[536893081] + 360;
        }
        public override bool Equals(object obj)
        {
            if(obj == null)
            {
                    return false;
            }
            
            if((System.Type.op_Inequality(left:  this.GetType(), right:  obj.GetType())) == true)
            {
                    return false;
            }
            
            if((System.String.op_Equality(a:  this.url, b:  536884571)) == false)
            {
                    return false;
            }
            
            if((((System.String.op_Equality(a:  this.expectedData, b:  536884571)) == false) || (this.dataMustBeEquals != mem[536884871])) || (this.useOnlyCustom != mem[536884871]))
            {
                    return false;
            }
            
            var val_6 = (this.showErrors == mem[536884871]) ? 1 : 0;
            return false;
        }
        public override int GetHashCode()
        {
            return this.GetHashCode();
        }
        public CustomCheck()
        {
            this.url = mem[536893213];
            this.expectedData = -1610595939;
        }
    
    }

}
